<?php 
namespace App\Utils;
use App\Models\Log;

class LogUtil{
	public function loginLog($userName){
		log::create([
				'user_name' => $userName,
				'log' => '登录了本系统'
			]);
	}

	public function logoutLog($userName){
		Log::create([
				'user_name' => $userName,
				'log' => '登出了本系统'
			]);
	}

	public function createLog($userName,$log){
		Log::create([
				'user_name' => $userName,
				'log' => $log
			]);
	}

	public function deleteLog($userName,$log){
		Log::create([
				'user_name' => $userName,
				'log' => $log
			]);
	}

	public function updateLog($userName,$log){
		Log::create([
				'user_name' => $userName,
				'log' => $log
			]);
	}
}